public class dog extends Animal {

    dog(String name,int age,String sex)
    {
        super(name,age,sex);
    }
    public void action() {
        System.out.println("汪汪叫");
    }
    public void eat() {
        System.out.println("喜欢吃骨头");
    }
}
class cat extends Animal{

    cat(String name,int age,String sex)
    {
        super(name,age,sex);
    }
    public void action() {
        System.out.println("喵喵叫");
    }

    public void eat() {
        System.out.println("喜欢吃鱼");
    }
}
 class sheep extends Animal{

    sheep(String name,int age,String sex)
    {
        super(name,age,sex);
    }
    public void action() {
        System.out.println("咩咩叫");
    }

    public void eat() {
        System.out.println("喜欢吃草");
    }
}